<?php
require_once 'controller/config.inc';
$id= $_POST['bookId'];
$delete=mysql_query("DELETE FROM items WHERE id='$id'");
if($delete){
	?>
	<meta http-equiv='refresh' content="0;URL=default.php?status=success">
<?php 	
}
else{
?>	
<meta http-equiv='refresh' content="0;URL=default.php?status=failed">
<?php 	
}
?>
